<?php

namespace DesignNew\Composite;

use DesignNew\Composite\Developer;
require('../vendor/autoload.php');

class ComClient
{
    public function __construct()
    {
        $this->run();
    }

    public function run()
    {
       $john = new Developer('John Doe', 12000);
       $jane = new Designer('Jane Doe', 15000);

       $organization = new Organization();
       $organization->addEmployee($john);
       $organization->addEmployee($jane);

       echo "Net salaries:" . $organization->getNetSalaries();
    }
}

$client = new ComClient();